//
//  CommonUtils.h
//  YSSmartHome
//
//  Created by yanghao on 2017/3/28.
//  Copyright © 2017年 yahaong. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef  NS_ENUM(NSInteger ,DatePeriod){
    DatePeriod03,
    DatePeriod06,
    DatePeriod09,
    DatePeriod12,
    DatePeriod15,
    DatePeriod18,
    DatePeriod21,
    DatePeriod24,
};
@interface CommonUtils : NSObject
+(BOOL)isNewUpdateWithKey:(NSString*)key;
+ (int)evaluateColor:(int) startValue endValue:(int)endValue  fraction:(float) fraction ;
+ (BOOL)dateIsBetweenPeriodOfDate:(NSDate*)date datePeriod:(DatePeriod)datePeriod;
+ (BOOL)date:(NSDate*)date isBetweenDate:(NSDate*)beginDate andDate:(NSDate*)endDate;
@end
